$(document).ready(function () {
    $('img.menu_class').click(function () {
	var msgbox = $("#div_chat_small");
	if(msgbox.css("visibility") == "visible"){
		msgbox.css("visibility","hidden");	
	}else{
		msgbox.css("visibility","visible");
	}
	//$('ul.the_menu').slideToggle('medium');
		//});
		if($('#chat_box_container').is(":hidden")){
			$('#chat_box_container').fadeIn('middle');
		}else{
			$('#chat_box_container').fadeOut('middle');
		}
	});

});
